package com.twu.biblioteca;

import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * User: ysotirov
 * Date: 03/02/13
 * Time: 17:24
 * To change this template use File | Settings | File Templates.
 */
public class MoviesMenu extends Menu {

    ArrayList<IMenu> options = new ArrayList<IMenu>();

    public MoviesMenu(IOInterface ioHndl, Biblioteca bibl) {
        super(ioHndl, bibl);
        titleMsg = "Movies Menu";
        OptionList.add("1. View list of movies with ratings");
        OptionList.add("2. Go back to main menu");
        options.add(new DisplayMovieRatings(ioHndl,bibl));
        options.add(new GoBackToMain(ioHndl,bibl));
        selectOptionMsg = "Please select from the above options";
    }

    @Override
    public void executeOption(int opt) {
        options.get(opt-1).executeOption();
    }
}
